home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.6 / am / python.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  2.8 KB  |  86 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright 1999, 2001 Free Software Foundation, Inc.
  3.  
  4. ## This program is free software; you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation; either version 2, or (at your option)
  7. ## any later version.
  8.  
  9. ## This program is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ## GNU General Public License for more details.
  13.  
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  17. ## 02111-1307, USA.
  18.  
  19.  
  20. ## ------------ ##
  21. ## Installing.  ##
  22. ## ------------ ##
  23.  
  24. if %?INSTALL%
  25. _am_installdirs += $(DESTDIR)$(%NDIR%dir)
  26. ?BASE?%DIR%PYTHON_INSTALL = $(INSTALL_DATA)
  27. ?!BASE?%DIR%PYTHON_INSTALL = $(install_sh_DATA)
  28. ?EXEC?.PHONY install-exec-am: install-%DIR%PYTHON
  29. ?!EXEC?.PHONY install-data-am: install-%DIR%PYTHON
  30. install-%DIR%PYTHON: $(%DIR%_PYTHON)
  31.     @$(NORMAL_INSTALL)
  32.     $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir)
  33.     @list='$(%DIR%_PYTHON)'; dlist=''; for p in $$list; do\
  34.       if test -f $(srcdir)/$$p; then \
  35. ## Compute basename of source file.  Unless this is a nobase_ target, we
  36. ## want to install 'python/foo.py' as '$(DESTDIR)$(%NDIR%dir)/foo.yo',
  37. ## not '$(DESTDIR)$(%NDIR%dir)/python/foo.yo'.
  38. ?BASE?        d=`echo "$$p" | sed -e 's,^.*/,,'`; \
  39. ?!BASE?        d="$$p"; \
  40.         dlist="$$dlist $$d"; \
  41. ## Don't perform translation, since script name is important.
  42.         echo " $(%DIR%PYTHON_INSTALL) $(srcdir)/$$p $(DESTDIR)$(%NDIR%dir)/$$d"; \
  43.         $(%DIR%PYTHON_INSTALL) $(srcdir)/$$p $(DESTDIR)$(%NDIR%dir)/$$d; \
  44.       else :; fi; \
  45.     done; \
  46. ## Byte-compile must be done at install time, since file times are
  47. ## encoded in the actual files.
  48.     PYTHON=$(PYTHON) $(py_compile) --basedir $(DESTDIR)$(%NDIR%dir) $$dlist
  49. endif %?INSTALL%
  50.  
  51.  
  52. ## -------------- ##
  53. ## Uninstalling.  ##
  54. ## -------------- ##
  55.  
  56. if %?INSTALL%
  57. .PHONY uninstall-am: uninstall-%DIR%PYTHON
  58. uninstall-%DIR%PYTHON:
  59.     @$(NORMAL_UNINSTALL)
  60.     list='$(%DIR%_PYTHON)'; for p in $$list; do \
  61. ?BASE?      d=`echo "$$p" | sed -e 's,^.*/,,'`; \
  62. ?!BASE?      d="$$p"; \
  63.       rm -f $(DESTDIR)$(%NDIR%dir)/$$d; \
  64. ## This is to remove the .pyc and .pyo byte compiled versions (a bit
  65. ## of a hack).
  66.       rm -f $(DESTDIR)$(%NDIR%dir)/$${d}c; \
  67.       rm -f $(DESTDIR)$(%NDIR%dir)/$${d}o; \
  68.     done
  69. endif %?INSTALL%
  70.  
  71.  
  72. ## ---------- ##
  73. ## Cleaning.  ##
  74. ## ---------- ##
  75.  
  76. ## There is nothing to clean here since files are
  77. ## byte-compiled when (and where) they are installed.
  78.  
  79. ## -------------- ##
  80. ## Distributing.  ##
  81. ## -------------- ##
  82.  
  83. if %?DIST%
  84. DIST_COMMON += $(%DIR%_PYTHON)
  85. endif %?DIST%
  86.